<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>我的资源列表</title>
	<%@ include file="/WEB-INF/include/include.jsp" %>
	<script type="text/javascript" src="<%=path %>/js/rms/myres/myResList.js"></script>
  </head>
  <body>
  		<div class="listpage-locked-content">
			<h2 class="listpage-lk-title" >我的项目</h2>
			<div class="listpage-lk-search" id="searchWrap" ></div>
			<div class="listpage-lk-tbar" id="tbarWrap"></div>
		</div>
		
		<div class="listpage-content">
			<div class="listpage-grid" id="gridWrap"></div>
		</div>
		
  </body>
</html>

<ui:page>


	<ui:quicksearch handler="" scope="" renderTo="searchWrap"></ui:quicksearch>
	<ui:b_toolbar menuCode="mnuMyRes" id="toolbar" renderTo="tbarWrap" ></ui:b_toolbar>
	
	<ui:searchform id="searchFormId">
		<x:items>
			<ui:formPanel.text id="resName" fieldLabel="项目名称包含" config="true"></ui:formPanel.text>
			<ui:formPanel.comboxstatic id="stepstatus" fieldLabel="状态" data="[['0','运行中'],['1','已停止']]" config="true"></ui:formPanel.comboxstatic>
		</x:items>
	</ui:searchform>
	
	<ui:advSearchWindow searchFormId="searchFormId" id="advSearchWin" 
		searchHandlerscope="MyResList" searchHandler="MyResList.advSearch" 
		height="240" width="300"/>	
	
  	<ui:model name="MyResGridModel">
  		 <x:attr name="fields" type="array">
  			<ui:model.field name="resId"   ></ui:model.field>
  			<ui:model.field name="applyId"   ></ui:model.field>
  			<ui:model.field name="ownerId"   ></ui:model.field>
  			<ui:model.field name="resName"   ></ui:model.field>
  			<ui:model.field name="resDesc"   ></ui:model.field>
  			<ui:model.field name="startDate"  ></ui:model.field>
  			<ui:model.field name="endDate"  ></ui:model.field>
  			<ui:model.field name="status"   ></ui:model.field>
  		</x:attr>
  	</ui:model>
	
	<ui:grid id="myResGrid" showCheckbox="true" 
		datasetName="MyResDataSetHandler" 
		handlerName="MyResQueryHandler" 
		handlerMethod="queryGrid"
		model="MyResGridModel" renderTo="gridWrap"  >
		<x:columns>
			<ui:gridcolumn dataIndex="resId"  hidden="true"  ></ui:gridcolumn>
			<ui:gridcolumn text="项目名称" dataIndex="resName"/>
			<ui:gridcolumn text="项目描述" dataIndex="resDesc"/>
			<ui:gridcolumn text="开始时间" dataIndex="startDate" width="130" />
			<ui:gridcolumn text="结束时间" dataIndex="endDate" width="130" />
			<ui:gridcolumn text="当前状态" dataIndex="status" renderer="MyResList.renderStatus"/>
		</x:columns>
	</ui:grid>
	
</ui:page>
